
<!-- 右 -->
<div class="content">
    <div class="header">
        <h1 class="page-title">角色列表</h1>
    </div>

    <div class="well">
    <a class="btn btn-primary" href="{:url('admin/rule/add')}">新增</a>
        <!-- table -->
        <table class="table table-bordered table-hover table-condensed">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>用户组</th>
                    <th>权限ids</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {foreach $data as $v}
                    <tr class="success">
                        <td>{$v.id}</td>
                        <td>{$v.role_name}</td>
                        <td>{$v.role_ids}</td>
                        <td>
                            <a href="{:url('admin/rule/edit',['id'=> $v.id])}"> 修改 </a>
                            <a href="javascript:void(0);" onclick="if(confirm('确认删除？')) location.href='{:url(\'admin/Rule/delete\',[\'id\'=>$v.id])}'"> 删除 </a>
                        </td>
                    </tr>
                {/foreach}
            </tbody>
        </table>
        <!-- pagination -->
        <div class="pagination">
            <ul>
                <li><a href="#">Prev</a></li>
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">Next</a></li>
            </ul>
        </div>
    </div>
    <!-- footer -->
